package com.byb.server.service;

import com.byb.server.service.dto.WcQuestionDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Service Interface for managing WcQuestion.
 */
public interface WcQuestionService {

    /**
     * Save a wcQuestion.
     *
     * @param wcQuestionDTO the entity to save
     * @return the persisted entity
     */
    WcQuestionDTO save(WcQuestionDTO wcQuestionDTO);

    /**
     *  Get all the wcQuestions.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<WcQuestionDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" wcQuestion.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    WcQuestionDTO findOne(Long id);

    /**
     *  Delete the "id" wcQuestion.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    /**
     * Search for the wcQuestion corresponding to the query.
     *
     *  @param query the query of the search
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<WcQuestionDTO> search(String query, Pageable pageable);

    Page<WcQuestionDTO> getWcQuestionByProductId(Long id,Pageable pageable);
}
